import Demo from './demo';
import Vue from 'vue'
import testRoutes from './route.js'
import Router from 'vue-router'
import Index from './index.vue'

Vue.config.productionTip = false

Vue.use(Router)

let route = testRoutes.concat(
  {
    path: '/',
    name: 'index',
    component: Index
  })
let router = new Router(
  {
    routes: route
  })

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<Demo/>',
  components: {Demo}
})
